package com.rongc.client.freight.business.supply.request.api;


import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.rongc.client.core.network.api.AbsRequest;
import com.rongc.client.core.network.params.BaseParams;
import com.rongc.client.freight.ApiUrl;
import com.rongc.client.freight.business.supply.model.SupplyConveyanceList;


/*
*  发布运单跳转推荐车辆接口
* */

public class SupplySearchDriverApi extends AbsRequest<SupplySearchDriverApi.SupplySearchDriverParams, SupplyConveyanceList> {

    public SupplySearchDriverApi(SupplySearchDriverParams feedbackParams, Listener<SupplyConveyanceList> listener, ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getSearchDriversUrl(), feedbackParams, listener, errorListener, SupplyConveyanceList.class);
    }

    public static class SupplySearchDriverParams extends BaseParams {

        public SupplySearchDriverParams(String startLon,String startLat,String endLon,
                                        String endLat,String carLength,String loadTime,String page) {
            put("startLon",startLon);
            put("startLat",startLat);
            put("endLon",endLon);
            put("endLat",endLat);
            put("carLength",carLength);
            put("loadTime",loadTime);
            put("page",page);
        }
    }


}
